using AiQiuQuan.Sport.Model.Enums;

namespace AiQiuQuan.Sport.WebApi.Entities
{
    /// <summary>
    /// 场馆会员卡用户领取
    /// </summary>
    public class VenueUserCard : BaseEntity
    {
        /// <summary>
        /// 场馆id
        /// </summary>
        public Guid VenueId { get; set; }

        /// <summary>
        /// 会员用户id
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 场馆卡套ID
        /// </summary>
        public Guid CardId { get; set; }

        /// <summary>
        /// 会员卡类型：1储值卡、2次卡、3打折卡
        /// </summary>
        public MemberCardTypeEnum CardType { get; set; }

        /// <summary>
        /// 最近充值时间(初次等于开卡时间)
        /// </summary>
        public DateTimeOffset RechargeTime { get; set; }

        /// <summary>
        /// 过期时间
        /// </summary>
        public DateTimeOffset ExpireTime { get; set; }

        /// <summary>
        /// 余额
        /// </summary>
        public decimal Balance { get; set; }

        /// <summary>
        /// 次数(针对次数卡)
        /// </summary>
        public decimal TimesCount { get; set; }

        /// <summary>
        /// 折扣(针对折扣卡)(1-10)
        /// </summary>
        public decimal Discount { get; set; }
    }
}
